package zju.ccnt.oauth2.user.api;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * Created by zha on 14/11/5.
 */
public class CreateUserRequest<T extends ApiUser> {
    @NotNull
    @Valid
    private T user;

    @NotNull
    @Valid
    private PasswordRequest password;

    public CreateUserRequest(){}

    public PasswordRequest getPassword() {
        return password;
    }

    public void setPassword(PasswordRequest password) {
        this.password = password;
    }

    public T getUser() {
        return user;
    }

    public void setUser(T user) {
        this.user = user;
    }
}
